package com.feiyu.config;


import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.parsers.SAXParser;

@Configuration
public class BeanConfig {

    @Bean
    //将当前方法的返回值对象交给IOC容器管理, 成为IOC容器bean
    //通过@Bean注解的name/value属性指定bean名称, 如果未指定, 默认是方法名
    public SAXReader saxReader() {

        return new SAXReader();
    }
}
